-------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  D:\Dropbox\FIRSTPAPERDRAFTSANDPROGRAMS\CleanFiles4SubmissionUpload\LOGS\logimp
> ortOXoutput.log
  log type:  text
 opened on:  28 Mar 2013, 16:38:30

.   insheet using "$path\Data\output2.csv", comma
(5 vars, 231 obs)

.   drop v1

.   rename var1 id

.   rename var2 y_p

.   rename var3 underrp_m

.   rename var4 y_star1b

. 
.   label var id "firm identity code"

.   label var y_p "conditional prediction of true sales based on indcators and explantory v
> ariables"

.   label var underrp_m "underreporting by comparing y_p and sales reported to tax office"

.   label var y_star1b "predicted sales based on analytical solutions"

. 
.   sort id

.   save $path\Data\output2.dta,replace
file D:\Dropbox\FIRSTPAPERDRAFTSANDPROGRAMS\CleanFiles4SubmissionUpload\Data\output2.dta sa
> ved

. 
. 
. *** merge the MIMIC output with the original data ***
.   clear all

.   use "$path\Data\dataMongolia.dta",clear

.   sort id

.   merge 1:1 id using "$path\Data\output2.dta"

    Result                           # of obs.
    -----------------------------------------
    not matched                           133
        from master                       133  (_merge==1)
        from using                          0  (_merge==2)

    matched                               231  (_merge==3)
    -----------------------------------------

.   tab _merge

                 _merge |      Freq.     Percent        Cum.
------------------------+-----------------------------------
        master only (1) |        133       36.54       36.54
            matched (3) |        231       63.46      100.00
------------------------+-----------------------------------
                  Total |        364      100.00

.   drop _merge

. *** save the data as 3underreport.dta
.   save "$path\Data\3underreport.dta",replace
file D:\Dropbox\FIRSTPAPERDRAFTSANDPROGRAMS\CleanFiles4SubmissionUpload\Data\3underreport.d
> ta saved

. 
.   log close
      name:  <unnamed>
       log:  D:\Dropbox\FIRSTPAPERDRAFTSANDPROGRAMS\CleanFiles4SubmissionUpload\LOGS\logimp
> ortOXoutput.log
  log type:  text
 closed on:  28 Mar 2013, 16:38:30
-------------------------------------------------------------------------------------------
